PICTools Programmer's Reference
Auto-Detect Orientation of Page

Automatically detects page orientation (right-side up, upside-down, or sideways). No input parameter is required to control the process.

The uncompressed image to be processed must reside in the Get Queue prior to REQ_EXEC. Typically, the image will be fully contained in the Get Queue, but that is not a requirement. There is no output image.

This subcode differs from the Detect Image Skew operation (0) in that the output value may exceed 90 degrees but but is constrained to be a multiple of 90 degrees. In fact, if there is a possibility that the image may be skewed by an angle smaller than 90 degrees, it should be deskewed prior to the Auto-Detect Orientation operation.

The operation relies on statistical properties of text In the Roman alphabet and is unlikely to yield good results on other types of images (predominately photographic, etc.)

In situations where it is known that the image is not sideways, the DisallowSideways option can be used to constrain the result to be a multiple of 180 degrees.

This operation stores some output information into the PIC_PARM structure in the following locations.

 

 


©2022. Accusoft Corporation. All Rights Reserved.

Send Feedback